package com.mzj.saas.front;

import com.haixiaoke.saas.repository.core.AjaxResult;
import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.pojo.OpLead;
import com.haixiaoke.saas.repository.service.IOpLeadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/front/opLead")
public class FrontOpLeadController extends BaseController {


    @Autowired
    private IOpLeadService opLeadService;

    /**
     * 新增公众号留咨信息
     */
    @PostMapping
    public AjaxResult add(@RequestBody OpLead opLead) {
        return toAjax(opLeadService.insertOpLead(opLead));
    }

}
